-- GENERATED SPELL FOR [Snort the Heckler] --


function spell0_5829(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5829', 8000, 1)
end

function spell1_5829(pUnit, Event) --@Toxic Spit,n/a--
pUnit:FullCastSpellOnTarget(7951,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5829', 2500, 1)
end

function Sorts_5829(pUnit, Event)
local choix_sorts_5829 = math.random(0, 1)
if choix_sorts_5829 == 0 then
pUnit:RegisterEvent('spell0_5829', 1, 1)
end
if choix_sorts_5829 == 1 then
pUnit:RegisterEvent('spell1_5829', 1, 1)
end
end

function mob5829_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5829', math.random(1500, 3000), 1)
end

function mob5829_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5829_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5829_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5829, 1, 'mob5829_Action')
RegisterUnitEvent(5829, 2, 'mob5829_Leave')
RegisterUnitEvent(5829, 3, 'mob5829_Kill')
RegisterUnitEvent(5829, 4, 'mob5829_Die')
